﻿<%@ Page Title="" Language="C#" MasterPageFile="" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

        <tr>
    <%  int i = 0;
        foreach (var foto in (List<MvcSite.Models.Foto>)ViewData["Foto"])
       { 
            if( i >= 4)
            {
                %>
                </tr><tr>
                <%
                    i = 0;
            }
            %>

            <td>
            <img class="ant_img" src="<%= foto.Path %>" val="<%= foto.IdImg %>" height="100px" onClick="cliccaFoto(this)" />
            
            </td>
    <% 
           i++;
        }  
    %>
    </tr>